{% extends "password_reset/base.html" %}{% load i18n %}

{% block content %}
	{% if invalid %}{% url "password_reset_recover" as recovery_url %}
		<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
	{% else %}
		<p>{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}</p>
		<form method="post" class="form-horizontal" action="{% url 'password_reset_reset' token %}">
			{% csrf_token %}
			<div class="form-group">
				<label for="id_password1" class="label-control col-sm-2">New password:</label>
				<div class="col-sm-4">
				<input type="password" class="form-control" id="id_password1" name="password1"  required>
				</div>
			</div>
			<div class="form-group">
				<label for="id_password2" class="label-control col-sm-2">password(confirm):</label>
				<div class="col-sm-4">
				<input type="password" class="form-control" id="id_password2" name="password2"  required>
				</div>
			</div>
			<p><input type="submit" class="btn btn-primary " style="margin-left:320px" value="{% trans 'submit' %}"></p>

		</form>
	{% endif %}
{% endblock %}

